package cn.micro.system.manage.service;

import cn.micro.system.manage.entity.SysDimRole;
import cn.micro.system.manage.entity.vo.AssginRoleVo;
import cn.micro.system.manage.entity.vo.SysRoleQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author wr
 * @since 2023-12-25
 */
public interface SysDimRoleService extends IService<SysDimRole> {

    //条件分页查询
    List<SysDimRole> selectPage(int page,int size, SysRoleQueryVo sysRoleQueryVo);

    //获取用户的角色数据
    Map<String, Object> getRolesByUserId(String userId);

    //用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);

    List<SysDimRole> getByCodeOrName(SysDimRole sysDimRole);

}
